<template>
    <div class="navbox">
        <div class="tipBox clear">
            <h2 align="center">泉经数码商城</h2>
            <i class="fa fa-commenting-o"></i>
        </div>

        <div class="searchBox clear">
            <i class="fa fa-search"></i><input type="text" @click="search()">
        </div>
    </div>
</template>

<script>
export default {
  data () {
    return {

    }
  },

  methods: {
    search () {
      this.$router.push('/search')
    }
  }
}
</script>

<style scoped>
.navbox{
    width: 23.4375rem;
    height: 6.5rem;
    background-color: #292525;
    margin: 0 auto;
}
.tipBox{
    width: 21rem;
    margin: 0 auto;
}
.tipBox h2{
    line-height: 35px;
    font-size: 18px;
    float: left;
}
.tipBox i{
    line-height: 35px;
    font-size: 25px;
    float: right;

}
.searchBox{
    width: 21rem;
    background-color: white;
    margin: 0.5rem auto;
    border-radius: 15px;
}
.searchBox i{
    margin-left: 10px;
}
.searchBox input{
    height: 2rem;
    padding-left: 10px;
    border: none;
    outline: none;
}
</style>
